/**
 *  SOsim: Simulator for Operating Systems Education
 *
 * 		SOsim is a simulator with visual facilities to serve as an effective 
 *  support tool for the better teaching and learning of the concepts and techniques 
 *  in modern operating systems, serving as a way to render the whole process more 
 *  efficient.
 *  Copyright (C) 2011  Luiz Paulo Maia
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package br.org.sosim.controller;

/**
 * Class u_Kernel
 */
public class u_Kernel {
	public static TInterrupt[] TabVetInt = new TInterrupt[TTipoInt.ti_PageFault
			.ordinal() + 1];
	
	public final static int MIN_INTERRUPTLEVEL = 0;
	public final static int MAX_INTERRUPTLEVEL = 15;
	
	/**
	 * This block static is for initialization the table of ???vet??? interrupt
	 */
	static {
		TInterrupt _wvar1 = TabVetInt[TTipoInt.ti_Preempcao.ordinal()];
		_wvar1.priority = MIN_INTERRUPTLEVEL;
		_wvar1.typeInterrupt = TTipoInt.ti_Preempcao;
		
		TInterrupt _wvar2 = TabVetInt[TTipoInt.ti_TSlice.ordinal()];
		_wvar2.priority = MIN_INTERRUPTLEVEL;
		_wvar2.typeInterrupt = TTipoInt.ti_TSlice;
		
		TInterrupt _wvar3 = TabVetInt[TTipoInt.ti_PageFault.ordinal()];
		_wvar3.priority = MIN_INTERRUPTLEVEL;
		_wvar3.typeInterrupt = TTipoInt.ti_PageFault;
	}
}
